package cn.btks.resultintegration.achievements.service;

import cn.btks.commonserver.result.ResultState;
import cn.btks.resultintegration.achievements.pojo.TextAchievementsTemp;
import jdk.nashorn.internal.ir.LiteralNode;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

/**
 * @Author lijun
 * @Date 2021/2/20 9:21
 */
public interface TextAchievementsTempService {

    /**
     * 上传文本成果
     * @param multipartFile
     * @param request
     * @return
     */
    List<TextAchievementsTemp> upload(MultipartFile multipartFile, HttpServletRequest request) throws IOException;

    /**
     * 批量保存
     * @param textAchievementsTemps
     * @return
     */
    ResultState saveAll(List<TextAchievementsTemp> textAchievementsTemps);
}
